package com.perfect.dao;

import com.perfect.base.BaseMapper;
import com.perfect.vo.Shop;
import com.perfect.vo.User;

import java.util.List;

public interface UserMapper extends BaseMapper<User,Integer> {



    Integer insert(User record);

    Integer updateByPrimaryKey(User record);

    User getUserByUserName(String username,Integer id);

    Integer updatePassword(String newPwd, String id);

    User getUserById(String id);

    //查询所有的商家
    List<User> queryAllMerchant();

    Shop getShopByUserId(Integer id);
}
